/* ═══════════════════════════════════════════════════════
   MAR AZUL — Pescadería & Mariscos
   styles.css
   ═══════════════════════════════════════════════════════ */

/* ─── Variables ─────────────────────────────────────── */
:root {
  --ocean-deep:    #0a1628;
  --ocean-mid:     #0d2240;
  --ocean-blue:    #1a4a7a;
  --teal:          #0f8a8a;
  --teal-light:    #13b0b0;
  --sand:          #c9a227;
  --sand-light:    #f0d06a;
  --white:         #f8faff;
  --text:          #1a2a3a;
  --text-muted:    #6b8098;
  --card-bg:       #ffffff;
  --border:        #d0e4f7;
  --radius:        14px;
  --radius-lg:     22px;
  --shadow:        0 4px 24px rgba(10,22,40,.12);
  --shadow-lg:     0 12px 48px rgba(10,22,40,.22);
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;
  --transition:    .3s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

.container {
  width: min(1200px, 94vw);
  margin-inline: auto;
}

/* ─── Scroll Reveal ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  border: none;
  transition: var(--transition);
  letter-spacing: .02em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: #fff;
  box-shadow: 0 4px 20px rgba(15,138,138,.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(15,138,138,.55);
}
.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,.9);
  border: 1.5px solid rgba(255,255,255,.4);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.7);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 1.1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.navbar.scrolled {
  background: rgba(10,22,40,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
  padding: .7rem 0;
}
.nav-container {
  width: min(1200px, 94vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .8rem;
}
.logo-icon { font-size: 1.8rem; line-height: 1; }
.logo-text { display: flex; flex-direction: column; }
.logo-main {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  line-height: 1;
  letter-spacing: .02em;
}
.logo-sub {
  font-size: .68rem;
  color: var(--teal-light);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: .3rem;
}
.nav-link {
  padding: .5rem .9rem;
  color: rgba(255,255,255,.82);
  font-size: .9rem;
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transition);
}
.nav-link:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
}
.nav-cta {
  margin-left: .5rem;
  padding: .5rem 1.1rem;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: #fff;
  border-radius: 50px;
  font-size: .88rem;
  font-weight: 600;
  transition: var(--transition);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(15,138,138,.5);
}
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: .3rem;
}
.menu-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ═══════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--ocean-deep) 0%, var(--ocean-mid) 40%, #0d4a6e 100%);
  padding: 6rem 0 4rem;
}

/* Animated waves background */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.wave {
  position: absolute;
  bottom: -2px;
  left: -10%;
  width: 120%;
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  opacity: .12;
  animation: waveAnim 8s ease-in-out infinite;
}
.wave-1 { height: 180px; background: var(--teal); animation-duration: 7s; }
.wave-2 { height: 140px; background: var(--teal-light); animation-duration: 9s; animation-delay: -2s; opacity: .08; }
.wave-3 { height: 100px; background: #fff; animation-duration: 11s; animation-delay: -4s; opacity: .05; }

@keyframes waveAnim {
  0%, 100% { transform: translateX(0) scaleY(1); }
  50% { transform: translateX(-4%) scaleY(1.08); }
}

/* Bubbles */
.bubbles { position: absolute; inset: 0; }
.bubbles span {
  position: absolute;
  bottom: -20px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  animation: bubble 10s infinite ease-in;
}
.bubbles span:nth-child(1){ left:10%; width:6px; height:6px; animation-delay:0s; animation-duration:9s; }
.bubbles span:nth-child(2){ left:25%; width:10px; height:10px; animation-delay:-2s; animation-duration:12s; }
.bubbles span:nth-child(3){ left:40%; width:5px; height:5px; animation-delay:-4s; animation-duration:8s; }
.bubbles span:nth-child(4){ left:55%; width:8px; height:8px; animation-delay:-1s; animation-duration:11s; }
.bubbles span:nth-child(5){ left:70%; width:6px; height:6px; animation-delay:-3s; animation-duration:10s; }
.bubbles span:nth-child(6){ left:82%; width:12px; height:12px; animation-delay:-5s; animation-duration:13s; }
.bubbles span:nth-child(7){ left:90%; width:4px; height:4px; animation-delay:-6s; animation-duration:9s; }

@keyframes bubble {
  0% { bottom: -20px; opacity: 0; transform: translateX(0); }
  10% { opacity: 1; }
  90% { opacity: .5; }
  100% { bottom: 110%; opacity: 0; transform: translateX(30px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1200px, 94vw);
  margin-inline: auto;
  max-width: 660px;
  color: #fff;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(15,138,138,.25);
  border: 1px solid rgba(15,138,138,.4);
  color: var(--teal-light);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 1.08;
  margin-bottom: .8rem;
  letter-spacing: -.02em;
}
.hero-title em { color: var(--teal-light); font-style: italic; }
.hero-slogan {
  font-size: 1.1rem;
  color: var(--sand-light);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.8rem; font-family: var(--font-display); color: var(--sand-light); }
.stat span { font-size: .78rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .08em; }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.15); }

.hero-fish-deco {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(8rem, 18vw, 18rem);
  opacity: .06;
  animation: fishFloat 5s ease-in-out infinite;
  user-select: none;
  pointer-events: none;
}
@keyframes fishFloat {
  0%, 100% { transform: translateY(-50%) translateX(0) rotate(-2deg); }
  50% { transform: translateY(-55%) translateX(8px) rotate(2deg); }
}

/* ═══════════════════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════════════════ */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-eyebrow {
  font-size: .82rem;
  color: var(--teal);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: .6rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--ocean-deep);
  line-height: 1.15;
  margin-bottom: .8rem;
}
.section-title em { color: var(--teal); font-style: italic; }
.section-desc { color: var(--text-muted); max-width: 540px; margin-inline: auto; line-height: 1.7; }

/* ═══════════════════════════════════════════════════════
   CATÁLOGO
   ═══════════════════════════════════════════════════════ */
.catalogo {
  padding: 7rem 0;
  background: #f0f6ff;
  position: relative;
}
.catalogo::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--sand), var(--teal-light));
}

/* Filtros */
.filtros {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.filtro-btn {
  padding: .55rem 1.3rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 500;
  transition: var(--transition);
}
.filtro-btn:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(15,138,138,.06);
}
.filtro-btn.active {
  background: var(--ocean-blue);
  color: #fff;
  border-color: var(--ocean-blue);
  box-shadow: 0 4px 16px rgba(26,74,122,.3);
}

/* Grid de productos */
.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

/* Tarjeta de producto */
.producto-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), opacity .4s ease;
  position: relative;
}
.producto-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.producto-card.oculto {
  display: none;
}

.card-badge {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  background: var(--teal);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .28rem .7rem;
  border-radius: 50px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.card-badge.fresh { background: var(--sand); color: var(--ocean-deep); }
.card-badge.promo { background: #c0392b; }

.card-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.08);
}
.card-emoji {
  font-size: 4.5rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
  position: relative;
  z-index: 1;
}

.card-info { padding: 1.3rem; }
.card-cat {
  font-size: .72rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.card-info h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ocean-deep);
  margin: .3rem 0 .5rem;
}
.card-info p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  flex-wrap: wrap;
}
.precio {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ocean-blue);
  font-family: var(--font-display);
}
.precio small { font-size: .72rem; font-weight: 400; color: var(--text-muted); font-family: var(--font-body); }
.precio-old {
  font-size: .85rem;
  color: #999;
  text-decoration: line-through;
  margin-right: .3rem;
}
.btn-card {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: #fff;
  border: none;
  padding: .45rem 1.1rem;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15,138,138,.45);
}

/* Promo card highlight */
.promo-card { border: 2px solid rgba(192,57,43,.25); }

/* ═══════════════════════════════════════════════════════
   NOSOTROS
   ═══════════════════════════════════════════════════════ */
.nosotros {
  padding: 7rem 0;
  background: var(--ocean-deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.nosotros::before {
  content: '🌊';
  position: absolute;
  right: -40px; top: 40px;
  font-size: 18rem;
  opacity: .03;
  pointer-events: none;
}
.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: center;
}
.nosotros-img-inner {
  aspect-ratio: 1;
  max-width: 380px;
  margin-inline: auto;
  background: linear-gradient(135deg, var(--ocean-blue), var(--teal));
  border-radius: 30% 70% 70% 30% / 40% 40% 60% 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  position: relative;
  animation: blobFloat 6s ease-in-out infinite;
  box-shadow: 0 0 80px rgba(15,138,138,.25);
}
@keyframes blobFloat {
  0%, 100% { border-radius: 30% 70% 70% 30% / 40% 40% 60% 60%; transform: translateY(0); }
  50% { border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%; transform: translateY(-12px); }
}
.nosotros-badge {
  position: absolute;
  bottom: 10%; right: -10%;
  background: var(--sand);
  color: var(--ocean-deep);
  font-size: .82rem;
  font-weight: 800;
  padding: .6rem 1.1rem;
  border-radius: 50px;
  letter-spacing: .06em;
  box-shadow: var(--shadow-lg);
}
.nosotros-texto .section-eyebrow { color: var(--teal-light); }
.nosotros-texto .section-title { color: #fff; text-align: left; margin-bottom: 1.2rem; }
.nosotros-texto p {
  color: rgba(255,255,255,.7);
  line-height: 1.75;
  margin-bottom: 1rem;
  font-size: .97rem;
}
.nosotros-texto strong { color: var(--teal-light); }

.nosotros-valores {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.valor {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
}
.valor-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.valor strong { display: block; color: #fff; font-size: .95rem; margin-bottom: .2rem; }
.valor p { color: rgba(255,255,255,.55); font-size: .82rem; margin: 0; }

/* ═══════════════════════════════════════════════════════
   CONTACTO
   ═══════════════════════════════════════════════════════ */
.contacto {
  padding: 7rem 0;
  background: var(--white);
}
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
.contacto-info { display: flex; flex-direction: column; gap: 1.2rem; }
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  background: #f0f6ff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.info-card:hover { border-color: var(--teal); transform: translateX(4px); }
.info-icon { font-size: 1.4rem; flex-shrink: 0; }
.info-card strong { display: block; color: var(--ocean-deep); font-size: .92rem; margin-bottom: .2rem; }
.info-card p, .info-card a {
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.5;
}
.info-card a:hover { color: var(--teal); }

/* Formulario */
.contacto-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.contacto-form h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ocean-deep);
  margin-bottom: 1.8rem;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: .86rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--text);
  background: #fafcff;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15,138,138,.12);
}
.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231,76,60,.1);
}
.form-error {
  display: block;
  font-size: .78rem;
  color: #e74c3c;
  margin-top: .3rem;
  min-height: 1rem;
}
.form-success {
  display: none;
  margin-top: 1rem;
  padding: .9rem 1.2rem;
  background: rgba(15,138,138,.1);
  border: 1px solid rgba(15,138,138,.3);
  color: #0a6b6b;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
}
.form-success.show { display: block; }

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
  background: var(--ocean-deep);
  color: rgba(255,255,255,.6);
  padding-top: 5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p {
  font-size: .88rem;
  line-height: 1.7;
  margin: 1.2rem 0 1.5rem;
}
.logo-footer .logo-main { font-size: 1.3rem; }
.social-links { display: flex; gap: .7rem; }
.social-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  border: 1px solid rgba(255,255,255,.1);
  transition: var(--transition);
}
.social-btn:hover { background: var(--teal); border-color: var(--teal); transform: translateY(-2px); }

.footer-links h4 {
  font-size: .82rem;
  color: rgba(255,255,255,.9);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.footer-links a, .footer-links p {
  display: block;
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  padding: .25rem 0;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--teal-light); }

.footer-bottom {
  text-align: center;
  padding: 1.5rem 0;
}
.footer-bottom p { font-size: .8rem; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .nosotros-grid { grid-template-columns: 1fr; gap: 3rem; }
  .nosotros-img { order: -1; }
  .nosotros-texto .section-title { text-align: center; }
  .nosotros-texto .section-eyebrow { text-align: center; display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,22,40,.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 998;
  }
  .nav-links.open { display: flex; }
  .nav-link { font-size: 1.3rem; }
  .nav-cta { font-size: 1.1rem; }
  .menu-toggle { display: flex; z-index: 1000; }

  .hero-content { max-width: 100%; }
  .hero-fish-deco { display: none; }
  .hero-stats { gap: 1rem; }

  .contacto-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .nosotros-badge { right: 0; bottom: 5%; }
}

@media (max-width: 480px) {
  .productos-grid { grid-template-columns: 1fr; }
  .filtros { gap: .4rem; }
  .filtro-btn { font-size: .8rem; padding: .45rem 1rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .contacto-form { padding: 1.5rem; }
  .stat strong { font-size: 1.4rem; }
}
